package com.anxin.registerManagement.controller;

import com.anxin.registerManagement.service.CodeService;
import com.anxin.registerManagement.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/code")
public class CodeController {

    @Autowired
    CodeService codeService;

    @GetMapping("/getCodeList")
    public ResultUtil getCodeList() {
        return ResultUtil.success(codeService.getCodeList());
    }

}
